﻿@model ExcellentCRM.Site.Models.LoginModel

@{
    Layout = "~/Views/Shared/_AccountLayout.cshtml";
    ViewBag.Title = "登录";
}
<style type="text/css">
    .container {
        width: 940px;
    }
    .checkbox {
        display: inline-block;
        padding-left: 5px;
        color: #1abc9c;
    }
</style>
@using (Html.BeginForm(new {ViewBag.ReturnUrl}))
{
    <div class="container">
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)
        <div class="login">
            <div class="login-screen">
                <div class="login-icon">
                    <img src="@Url.Content("~/Content/images/flat-ui/login/icon.png")" alt="@ViewBag.Title"/>
                    <h4>@ViewBag.Title</h4>
                </div>
                <div class="login-form">
                    <div class="control-group">
                        @Html.TextBoxFor(m => m.UserName, new { @class = "login-field", placeholder = "用户名" })
                        <label class="login-field-icon fui-man-16" for="UserName"></label>
                        @Html.ValidationMessageFor(m => m.UserName, null, new { @class = "error-text" })
                    </div>
                    <div class="control-group">
                        @Html.PasswordFor(m => m.Password, new { @class = "login-field", placeholder = "密码" })
                        <label class="login-field-icon fui-lock-16" for="Password"></label>
                        @Html.ValidationMessageFor(m => m.Password, null, new { @class = "error-text" })
                    </div>
                    <div class="control-group">
                        @Html.CheckBoxFor(m => m.RememberMe)
                        @Html.LabelFor(m => m.RememberMe, new {@class = "checkbox"})
                    </div>
                    <div class="control-group">
                        <input type="submit" value="登录" class="btn btn-primary btn-large" />
                    </div>
                    @*<div class="control-group login-link">
                        @Html.ActionLink("注册一个新帐号", "Register") 如果您未有帐号
                    </div>*@
                </div>
            </div>
        </div>
    </div>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
